CVE-2026-7020
Ollama Tensor Model Transfer transfer.go digestToPath path traversal
Description
A security flaw has been discovered in Ollama up to 0.20.2. This affects the function digestToPath of the file x/imagegen/transfer/transfer.go of the component Tensor Model Transfer Handler. The manipulation of the argument digest results in path traversal. The attack may be performed from remote. This attack is characterized by high complexity. The exploitability is reported as difficult. The exploit has been released to the public and may be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.
INFO
Published Date :
April 26, 2026, 5:16 a.m.
Last Modified :
May 6, 2026, 6:16 a.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 2.0 | MEDIUM | [email protected] | ||||
| CVSS 2.0 | LOW | [email protected] | ||||
| CVSS 3.1 | MEDIUM | [email protected] | ||||
| CVSS 3.1 | LOW | [email protected] | ||||
| CVSS 4.0 | MEDIUM | [email protected] | ||||
| CVSS 4.0 | LOW | [email protected] |
Solution
- Update Ollama to the latest version.
- Apply vendor patches when available.
- Restrict access to the affected component.
Public PoC/Exploit Available at Github
CVE-2026-7020 has a 1 public
PoC/Exploit available at Github.
Go to the Public Exploits tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-7020.
| URL | Resource |
|---|---|
| https://vuldb.com/submit/797576 | Exploit Third Party Advisory VDB Entry |
| https://vuldb.com/vuln/359599 | Third Party Advisory VDB Entry |
| https://vuldb.com/vuln/359599/cti | Permissions Required |
| https://vuldb.com/submit/797576 | Exploit Third Party Advisory VDB Entry |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-7020 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-7020
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
POC for CVE-2026-7720 - Ollama tensor digest path traversal
Python
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-7020 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-7020 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 06, 2026
Action Type Old Value New Value Added CVSS V4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X Removed CVSS V4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X Added CVSS V3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N Removed CVSS V3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L Added CVSS V2 (AV:N/AC:H/Au:N/C:P/I:N/A:N) Removed CVSS V2 (AV:N/AC:H/Au:N/C:P/I:P/A:P) -
Initial Analysis by [email protected]
May. 01, 2026
Action Type Old Value New Value Added CPE Configuration OR *cpe:2.3:a:ollama:ollama:*:*:*:*:*:*:*:* versions from (including) 0.20.0 up to (including) 0.20.2 Added Reference Type CISA-ADP: https://vuldb.com/submit/797576 Types: Exploit, Third Party Advisory, VDB Entry Added Reference Type VulDB: https://vuldb.com/submit/797576 Types: Exploit, Third Party Advisory, VDB Entry Added Reference Type VulDB: https://vuldb.com/vuln/359599 Types: Third Party Advisory, VDB Entry Added Reference Type VulDB: https://vuldb.com/vuln/359599/cti Types: Permissions Required -
Data Remediation by [email protected]
Apr. 29, 2026
Action Type Old Value New Value Changed CVSS V4.0 Score 6.3 2.9 -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Apr. 27, 2026
Action Type Old Value New Value Added Reference https://vuldb.com/submit/797576 -
New CVE Received by [email protected]
Apr. 26, 2026
Action Type Old Value New Value Added Description A security flaw has been discovered in Ollama up to 0.20.2. This affects the function digestToPath of the file x/imagegen/transfer/transfer.go of the component Tensor Model Transfer Handler. The manipulation of the argument digest results in path traversal. The attack may be performed from remote. This attack is characterized by high complexity. The exploitability is reported as difficult. The exploit has been released to the public and may be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way. Added CVSS V4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X Added CVSS V3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L Added CVSS V2 (AV:N/AC:H/Au:N/C:P/I:P/A:P) Added CWE CWE-22 Added Reference https://vuldb.com/submit/797576 Added Reference https://vuldb.com/vuln/359599 Added Reference https://vuldb.com/vuln/359599/cti